import csv
import logging,yagmail
def log_txt():
    logging.basicConfig(level=logging.DEBUG,format='%(levelname)s_%(asctime)s_%(message)s',handlers=[
        logging.StreamHandler(),
        logging.FileHandler('log.txt')
    ])

def seed_mail(a):
    mail=yagmail.SMTP(user='2331638070@qq.com',password='zrkhdsxvjfqsdiif',host='smtp.qq.com')
    mail.send(to='2331638070@qq.com',subject='哈基米',contents='2025.11.2',attachments=a)

def load_csv_data(a):
    with open(a,newline='',encoding='utf-8') as csvf:
        reader=csv.reader(csvf)
        next(reader)
        return [row for row in reader]